From: Jasper St. Pierre Date: Fri, 16 Aug 2013 23:32:54 +0000 (-0400) Subject: network: Update the icon even if we don't have a connection X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3718 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=156be19c2d17cd49d5dd7b8a7eeeaf3fee6bf479;p=gnome-shell.git network: Update the icon even if we don't have a connection If we don't have a connection at startup or we transition from having a connection to not having a connection, we need to make sure we hide the correct indicators. --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 2b5efebd6..c2a2686a4 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1498,8 +1498,9 @@ const NMApplet = new Lang.Class({ if (this._mainConnection) { let dev = this._mainConnection._primaryDevice; this._mainConnectionIconChangedId = dev.connect('icon-changed', Lang.bind(this, this._updateIcon)); - this._updateIcon(); } + + this._updateIcon(); }, _notifyActivated: function(activeConnection) {